package adapter;

/**
 * @ClassName WithoutAdapterPatternDemo
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/2/23 17:43
 * @Version 1.0
 */
public class WithoutAdapterPatternDemo {

	public static void main(String[] args) {
		final OldInterface old = new OldImpl();
		old.oldExecute();
		final NewImpl aNew = new NewImpl();
		aNew.newExecute();
	}


}
interface OldInterface{
	void oldExecute();
}

class OldImpl implements OldInterface{

	@Override
	public void oldExecute() {
		System.out.println("old 处理逻辑");
	}
}

interface NewInterface{
	void newExecute();
}

class NewImpl implements NewInterface {

	@Override
	public void newExecute() {
		System.out.println("new 处理逻辑");
	}
}
